package com.thz.system.pojo.reply.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Description
 * @Author thz
 * @Date 2025/5/11
 */
@Getter
@Setter
public class ReplyVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long postUserId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long replyUserId;
    private String content;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long courseId;
    private Integer likeCount;
    private String author;
    private String postAuthor;
    private List<ReplyVO> children; // 二级评论
}